<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Homeless Partners Contact Form</title>
<link rel="stylesheet" media="screen" href="master.css">
<link rel="stylesheet" media="screen" href="iefix.css">
</head>
<body>
<form action="./contact" method="post">
<table width="748px" align="center" border="1" cellspacing="0">
	<tr>
		<td class="title" align="center">&nbsp;Homeless Partners Christmas Wish List</td>
	</tr>
	<tr>
		<td class="subtitle" align="center">&nbsp;connecting the community to individual homeless people</td>
	</tr>
	<tr>
		<td class="page"><br />
		<%
			Object message = request.getAttribute("message");
			if (message == null) {
				message =
				"Please submit the following form and someone will get back to you as soon as possible. Thanks!";
			}
		%> <%=message%><br />
		<br />

		<table border="0">
			<tr>
				<td align="right"><b>Name:</b></td>
				<td align="left"><input type="text" name="theName" /></td>
			</tr>
			<tr>
				<td align="right"><b>Email:</b></td>
				<td align="left"><input type="text" name="theEmail" /></td>
			</tr>
			<tr>
				<td align="right"><b>City:</b></td>
				<td align="left"><select name="theCity">
					<option value="">Please Select</option>
					<%
						String[] cities = (String[]) getServletContext().getAttribute("cities");
						for (int x = 0; x < cities.length; x++) {
					%>
					<option value="<%= cities[x] %>"><%=cities[x]%></option>

					<%
					}
					%>
					<option value="other">Other (please specify in the details)</option>
				</select></td>
			</tr>
			<tr>
				<td align="right"><b>Subject:</b></td>
				<td align="left"><input type="text" name="theSubject" /></td>
			</tr>
			<tr>
				<td align="right" valign="top"><b>Details:</b></td>
				<td align="left"><textarea rows="10" cols="40" name="theDetails"></textarea><br />
				<br />
				</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="Submit" />&nbsp;&nbsp;<input type="button" value="Cancel"
					onclick="window.close()" /><br />
				<br />
				</td>
			</tr>
		</table>

		</td>
	</tr>
</table>
</form>
</body>
</html>
